package com.conan.method.exer5;/** * @version 加油！！！ * @Description     自定义一个操作int[]的工具类， *                  求最大值，最小值，平均值，总合，遍历数组，复制数组，数组反转，数组排序，从大到小，查找 * @Author 谷藤新一GYC * @Date 2023/7/31-9:20 */public class ArrayTest {    public static void main(String[] args) {        int[] arr = new int[]{2,1,3,5,4,6,7};        MyArrays myArrays = new MyArrays();        int[] reverse = myArrays.sort(arr);        for (int i = 0; i < reverse.length; i++) {            System.out.print(reverse[i]+"\t");        }        System.out.println();        int[] ints = myArrays.find(arr, 8);        for (int i = 0; i < ints.length; i++) {            System.out.print(ints[i]+"\t");        }    }}   